@echo off 

echo 部署开始...

echo STEP-1: 如果没有安装过依赖, 请安装依赖模块...

rem call cnpm install

echo STEP-2: 编译打包

call npm run build

echo STEP-3: 生成版本信息文件 version.txt
echo {"version":"1.0.0.%date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2%","codeVersion":""} > dist/version.txt

echo STEP-4: 请输入密码 znbf2023 到光标处, 传送文件到远程主机...
scp -r dist\*  root@192.168.0.250:/home/smartheating/ui

echo STEP-5: 打包完成传送完成！！！

echo 访问地址 http://192.168.0.250:8088/

pause